package com.yehuo.app.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class R<T> implements Serializable {

    private Integer code;

    private String msg;

    private Integer count;

    private List<T> data;

    private Map<String,Object> map;

    public R(Integer count,List<T> data){
        this.code=0;
        this.msg="成功";
        this.count=count;
        this.data=data;
    }
}
